<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>History Manager </title>

<script src="mootools-1.2.2-core.js" type="text/javascript"></script>
<script src="../Awf.historyManager.js" type="text/javascript"></script>
<script type="text/javascript">

window.addEvent('domready',function(){
	// Load the historyManager
	new Awf.historyManager({
		defaultHash: {
			page: 'hello there!'
		},
		delay: 200
	})
		.register('page',function(value){
			$('debug').set('text',value);
		})
		.observe();	
});
	
</script>

</head>
<body>

<ul>
	<li><a href="#page:hi">Hi!</a></li>
	<li><a href="#page:second">This is a second link</a></li>
</ul>

<div id="debug">
	
</div>

</body>
</html>
